from pynixweb.db.database import transactions,Query
from pynixweb.utils import DictUtils

class User(object):
    @staticmethod
    @transactions
    def list():
        sql = "select * from user"
        return DictUtils.cursor2obj(Query.executeQuery(sql))